#include "class-engine.h"

void cEngine::getKeyboard(sKeyboard &keyboard){

	if (event.type == SDL_KEYDOWN){

		switch( event.key.keysym.sym ){

			case SDLK_LEFT:
				keyboard.leftVector.angle		= 4.7115f;
				keyboard.leftVector.velocity	= 100;
				break;

			case SDLK_RIGHT:
				keyboard.leftVector.angle		= 1.5705f;
				keyboard.leftVector.velocity	= 100;
				break;

			case SDLK_UP:
				keyboard.leftVector.angle		= 0;
				keyboard.leftVector.velocity	= 100;
				break;

			case SDLK_DOWN:
				keyboard.leftVector.angle		= 3.141f;
				keyboard.leftVector.velocity	= 100;
				break;
		}
	}
}